package com.training.java.core.inheritance;

public class CricketPlayersDemo {

	public static void main(String[] args) {
		
		
		//Creating a constructor
		
		CricketPlayers cricketPlayers = new CricketPlayers("satya",11,"IDLE");
		
		//setting the started
		
		cricketPlayers.setStarted(true);
		System.out.println("Observe 'isStarted'  after setting it to true :" + cricketPlayers.isStarted());
		//Calling the methods
		
		cricketPlayers.start();
		cricketPlayers.stop();
		cricketPlayers.playerStatus();
		cricketPlayers.bowl();
		
		
		
		
		// Getting the player information
		
		System.out.println("Cricketer Name is :" + cricketPlayers.getName());
		System.out.println("Number of Players in the team :"+ cricketPlayers.getNumber());
		
		
	}

}
